Numerically Estimating Derivatives During Simulations

نویسنده

  • Gregory V. Bard
چکیده

When a function’s value is known at several distinct points, there exist “numerical differentiation” formulas which provide estimates for the first derivative, and with various error bounds. In fact, many times the numerical differentiation formula chosen must be complex to avoid intolerable error as shown below. However, in computer simulations, as well as in real-time programming, while several past data points might be known, as well as the present data, the future is not yet known or computed! This renders those formulas, at least as classically presented, useless for both real-time computing and for simulations. This research began as an inquiry to discover similar formulas usable when only the past and present, but not the future, are known. The author uncovered an extremely obscure corner of numerical analysis, where solutions to these dilemmas are feasible. An extremely simple algorithm can produce suitable formulas, for any number of data points, not only for the first derivative but also higher-order derivatives. Moreover, the data points can be irregularly spaced, and it is straight-forward to calculate the appropriate error terms, and the impact of noisy data. The standard presentation of these methods would require Multivariate Calculus, one or two semesters of Real Analysis, and one semester of Numerical Analysis. However, many computer science graduate students have only Calculus I and Calculus II. This is a novel presentation of this extremely obscure topic, meant not only to publicize it among simluation-oriented computer scientists and those working in real-time computing, but also to be comprehensible to someone who has 2–3 semesters of calculus and nothing more. A rigorous proof of correctness is provided in the appendix, as well as sample code for the algorithm in SAGE— the open source competitor to Maple, Mathematica, Matlab and Magma.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Asymptotics of Likelihood Ratio Derivative Estimators in Simulations of Highly Reliable Markovian Systems

We discuss the estimation of derivatives of a performance measure using the likelihood ratio method in simulations of highly reliable Markovian systems. We compare the difficulties of estimating the performance measure and of estimating its partial derivatives with respect to component failure rates as the component failure rates tend to 0 and the component repair rates remain fixed. We first c...

متن کامل

Estimating Derivatives for Samples of Sparsely Observed Functions, with Application to On-line Auction Dynamics

It is often of interest to recover derivatives of a sample of random functions from sparse and noise-contaminated measurements, especially when the dynamics of underlying processes is of interest. We propose a novel approach based on estimating derivatives of eigenfunctions and expansions of random functions into their eigenfunctions to obtain a representation for derivatives. In combination wi...

متن کامل

SNP Calling, Genotype Calling, and Sample Allele Frequency Estimation from New-Generation Sequencing Data

We present a statistical framework for estimation and application of sample allele frequency spectra from New-Generation Sequencing (NGS) data. In this method, we first estimate the allele frequency spectrum using maximum likelihood. In contrast to previous methods, the likelihood function is calculated using a dynamic programming algorithm and numerically optimized using analytical derivatives...

متن کامل

Recursive Taylor Series Expansion Method for Rigid-Body Molecular Dynamics.

Molecular dynamics computer simulation methods are very important for understanding mechanisms of chemical, physical, and biological processes. The reliability of molecular dynamics simulations strongly depends on the integration schemes used in the simulations. In this work, we developed new rigid body integration schemes for molecular dynamics simulations. Our approach is based on a numerical...

متن کامل

Synthesis novel bis-Coumarin derivatives as potential acetylcholinestrase inhibitors: An in vitro, molecular docking, and molecular dynamics simulations study

Alzheimer's disease is an irreversible and progressive brain disorder that slowly destroys memory and thinking skills and ultimately the ability to do the simplest things and can lead to death. Cholinesterases (ChEs) play an important role in controlling cholinergic transmission, and subsequently, by inhibiting CHEs, acetylcholine levels in the brain are elevated. Coumarins have been shown to e...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011